<?php  # Script -- HelloWorld.php

/* Author @ Huoty
 *   Date @ 2015-01-27 14:43:48
 *  Brief @ 
 */

class HelloWorld {
    
    // This method prints a greeting.
    // It takes one argument: the language to use.
    // Default language is English.
    function say_hello($language = "English")
    {
        // Put the greeting within P tags.
        echo "<p>";

        // Print amessage specific to a language.
        switch ($language)
        {
            case "Dutch":
                echo "Hello, wereld!";
                break;
            case "French":
                echo "Bonjour, mond!";
                break;
            case "German":
                echo "Hallo, Welt!";
                break;
            case "Italian":
                echo "Ciao, mondo!";
                break;
            case "Spanish":
                echo "Hola, mundo!";
                break;
            case "English":
            default:
                echo "Hello, world!";
                break;
        } // End of switch.

        echo "</p>";
    } // End of say_hello() function.
} // End of HelloWorld class.

?>
